﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KalevaAalto.DataPart.Excel.Base
{
    public abstract class BaseWorkbook : IDisposable
    {
        public abstract BaseWorksheets Worksheets { get; }

        public abstract void Save();
        public abstract Task SaveAsync(CancellationToken token = default);
        public abstract void SaveAs(string fileName);
        public abstract Task SaveAsAsync(string fileName, CancellationToken token = default);
        public abstract byte[] ToBytes();
        public abstract Task<byte[]> ToBytesAsync(CancellationToken token = default);


        public virtual void SaveAsPdf(string fileName)
        {
            throw new NotImplementedException();
        }
        public virtual Task SaveAsPdfAsync(string fileName)
        {
            throw new NotImplementedException();
        }

        public abstract void Dispose();
    }
}
